package com.example.netty.util;

public class CodeUtil {
    public static String hexToBinary(String hex) {
        int decimal = Integer.parseInt(hex, 16);
        String binary = Integer.toBinaryString(decimal);
        return String.format("%16s", binary).replace(' ', '0');
    }
}
